package c2.group.business.base;

import c2.advanced.business.AdvancedBody;
import c2.advanced.business.base.AdvancedModule;
import c2.advanced.business.base.KvData;
import c2.advanced.share.*;
import c2.group.business.GroupBody;
import c2.group.share.*;
import lombok.extern.slf4j.Slf4j;

/**
 * 跨服模块
 */
@Slf4j
public abstract class GroupModule<S extends KvData> extends AdvancedModule<S> {

    protected GroupBody context;

    @Override
    protected AdvancedBody context() {
        return this.context;
    }

    protected DbFacade4Group db() {
        return this.context.db;
    }

    @Override
    protected DbFacade _db() {
        return db();
    }

    public GroupModule(GroupBody context) {
        this.context = context;
    }

}
